<template>
  <div class="table-content">
    <el-table ref="multipleTableRef" :data="detailList" style="width: 100%" >
      <el-table-column property="assessName" label="设备名称" show-overflow-tooltip />
      <el-table-column property="accessLocation" label="设备位置" />
      <el-table-column property="accessModel" label="设备厂家及型号" />
       
    </el-table>

    <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> -->
  </div>
</template>

<script setup lang="ts">
import { inspecWorkPropertylDetailList } from "@/api/inspection";
const props = defineProps(['rowId'])





const detailList = ref([])
const getDetrailList = async()=>{
    const res = await inspecWorkPropertylDetailList(props.rowId)
    console.log(res);
    detailList.value = res.data

}
watchEffect(async () => {
  console.log(props.rowId);
  if(props.rowId){
    await getDetrailList()
  }
});
</script>

<style scoped></style>
